import request from '@/utils/request'

// 新增应付单
export function createPayableBill(data) {
  return request({
    url: '/tFinPayable/createPayableBill',
    method: 'post',
    data
  })
}
// 修改应付单
export function updatePayable(data) {
  return request({
    url: '/tFinPayable/updatePayable',
    method: 'post',
    data
  })
}
// 应付单详情
export function queryPayableDetails(params) {
  return request({
    url: '/tFinPayable/queryPayableDetails',
    method: 'get',
    params
  })
}
// 查询应付单列表
export function queryPayableList(data) {
  return request({
    url: '/tFinPayable/queryPayableList',
    method: 'post',
    data
  })
}
// 查询应付单汇总列表
export function queryMainPayableList(data) {
  return request({
    url: '/tFinPayable/queryMainPayableList',
    method: 'post',
    data
  })
}
// 反提交应付单
export function notsubmitPayableBill(data) {
  return request({
    url: '/tFinPayable/notsubmitPayableBill',
    method: 'post',
    data
  })
}
// 提交应付单
export function submitPayableBill(data) {
  return request({
    url: '/tFinPayable/submitPayableBill',
    method: 'post',
    data
  })
}
// 审核应付单
export function reviewPayables(data) {
  return request({
    url: '/tFinPayable/reviewPayables',
    method: 'post',
    data
  })
}
// 反审核应付单
export function notreviewPayables(data) {
  return request({
    url: '/tFinPayable/notreviewPayables',
    method: 'post',
    data
  })
}
// 删除应付单
export function delPayables(data) {
  return request({
    url: '/tFinPayable/delPayables',
    method: 'post',
    data
  })
}
// 付款单新增
export function insertFinPayment(data) {
  return request({
    url: '/tFinPayment/insertFinPayment',
    method: 'post',
    data
  })
}
// 付款单更新
export function updatePayment(data) {
  return request({
    url: '/tFinPayment/updatePayment',
    method: 'post',
    data
  })
}
// 付款单列表
export function queryPaymentList(data) {
  return request({
    url: '/tFinPayment/queryPaymentList',
    method: 'post',
    data
  })
}
// 付款单详情
export function queryPaymentDetails(params) {
  return request({
    url: '/tFinPayment/queryPaymentDetails',
    method: 'get',
    params
  })
}
// 付款单 提交
export function submitPayments(data) {
  return request({
    url: '/tFinPayment/submitPayments',
    method: 'post',
    data
  })
}
// 付款单 反提交
export function notsubmitPayments(data) {
  return request({
    url: '/tFinPayment/notsubmitPayments',
    method: 'post',
    data
  })
}
// 付款单 审核
export function reviewPayments(data) {
  return request({
    url: '/tFinPayment/reviewPayments',
    method: 'post',
    data
  })
}
// 付款单 审核
export function notreviewPayments(data) {
  return request({
    url: '/tFinPayment/notreviewPayments',
    method: 'post',
    data
  })
}
// 付款单删除
export function delPayments(data) {
  return request({
    url: '/tFinPayment/delPayments',
    method: 'post',
    data
  })
}
// 应付下推付款单
export function pushToFinPayment(data) {
  return request({
    url: '/tFinPayment/pushToFinPayment',
    method: 'post',
    data
  })
}
// 应收单下推至收款单
export function pushToFinReceipt(data) {
  return request({
    url: '/tFinReceipt/pushToFinReceipt',
    method: 'post',
    data
  })
}
// 新增应收单
export function createReceivableBill(data) {
  return request({
    url: '/tFinReceivable/createReceivableBill',
    method: 'post',
    data
  })
}
// 修改应收单
export function updateReceivable(data) {
  return request({
    url: '/tFinReceivable/updateReceivable',
    method: 'post',
    data
  })
}
// 应收单列表
export function queryReceivableList(data) {
  return request({
    url: '/tFinReceivable/queryReceivableList',
    method: 'post',
    data
  })
}
// 应收单详情
export function queryReceivableDetails(params) {
  return request({
    url: '/tFinReceivable/queryReceivableDetails',
    method: 'get',
    params
  })
}
// 应收单反提交
export function notsubmitReceivables(data) {
  return request({
    url: '/tFinReceivable/notsubmitReceivables',
    method: 'post',
    data
  })
}
// 应收单提交
export function submitReceivables(data) {
  return request({
    url: '/tFinReceivable/submitReceivables',
    method: 'post',
    data
  })
}
// 应收单审核
export function reviewReceivables(data) {
  return request({
    url: '/tFinReceivable/reviewReceivables',
    method: 'post',
    data
  })
}
// 应收单反审核
export function notreviewReceivables(data) {
  return request({
    url: '/tFinReceivable/notreviewReceivables',
    method: 'post',
    data
  })
}
// 应收单删除
export function delReceivables(data) {
  return request({
    url: '/tFinReceivable/delReceivables',
    method: 'post',
    data
  })
}
// 收款单新增
export function insertFinReceipt(data) {
  return request({
    url: '/tFinReceipt/insertFinReceipt',
    method: 'post',
    data
  })
}
// 收款单列表
export function queryReceiptList(data) {
  return request({
    url: '/tFinReceipt/queryReceiptList',
    method: 'post',
    data
  })
}
// 收款单更新
export function updateReceipt(data) {
  return request({
    url: '/tFinReceipt/updateReceipt',
    method: 'post',
    data
  })
}
// 收款单详情
export function queryReceiptDetails(params) {
  return request({
    url: '/tFinReceipt/queryReceiptDetails',
    method: 'get',
    params
  })
}
// 收款单反提交
export function notsubmitReceipts(data) {
  return request({
    url: '/tFinReceipt/notsubmitReceipts',
    method: 'post',
    data
  })
}
// 收款单提交
export function submitReceipts(data) {
  return request({
    url: '/tFinReceipt/submitReceipts',
    method: 'post',
    data
  })
}

// 收款单反审核
export function notreviewReceipts(data) {
  return request({
    url: '/tFinReceipt/notreviewReceipts',
    method: 'post',
    data
  })
}
// 收款单审核
export function reviewReceipts(data) {
  return request({
    url: '/tFinReceipt/reviewReceipts',
    method: 'post',
    data
  })
}
// 收款单删除
export function delReceipts(data) {
  return request({
    url: '/tFinReceipt/delReceipts',
    method: 'post',
    data
  })
}
// 查询费用项目 应付单
export function queryTFinPayableFyxmList(data) {
  return request({
    url: '/tFinPayableFyxm/queryTFinPayableFyxmList',
    method: 'post',
    data
  })
}
// 应付单 创建凭证
export function createBillVoucherTask(data) {
  return request({
    url: '/tTaskVoucher/createBillVoucherTask',
    method: 'post',
    data
  })
}
// 生成凭证-弹窗
export function queryTaskVoucherConfig(data) {
  return request({
    url: '/tTaskVoucher/queryTaskVoucherConfig',
    method: 'post',
    data
  })
}
// 业务生成凭证
export function createVoucherTask(data) {
  return request({
    url: '/tTaskVoucher/createVoucherTask',
    method: 'post',
    data
  })
}
// 资产卡片生成凭证
export function createVoucherByCard(data) {
  return request({
    url: '/tFinVoucher/createVoucherByCard',
    method: 'post',
    data
  })
}
// 资产处置生成凭证
export function createVoucherByManage(data) {
  return request({
    url: '/tFinVoucher/createVoucherByManage',
    method: 'post',
    data
  })
}
